package mest.dao.hws;

import mest.entity.device_file;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceFileDao {
    int deleteByPrimaryKey(@Param("theirDb") String theirDb,@Param("id") Integer id);

    int insert(@Param("theirDb") String theirDb,@Param("record") device_file record);

    int insertSelective(@Param("theirDb") String theirDb,@Param("record") device_file record);

    device_file selectByPrimaryKey(@Param("theirDb") String theirDb,@Param("id") Integer id);

    int updateByPrimaryKeySelective(@Param("theirDb") String theirDb,@Param("record") device_file record);

    int updateByPrimaryKey(@Param("theirDb") String theirDb,@Param("record") device_file record);

    int selectPrimarycount(@Param("theirDb") String theirDb,@Param("devicename")String devicename);

    List<device_file> selectPrimary(@Param("theirDb") String theirDb,@Param("limit") Integer limit, @Param("page") Integer page, @Param("devicename") String devicename);
}